package edu.wpi.first.wpilibj.robot;
import edu.wpi.first.wpilibj.*;

public class BeltMotor extends Motor
{
    Joystick jStick;
    int lowerButton, raiseButton;
    boolean shooting = false;
    
    public BeltMotor(Joystick j, Jaguar jag)
    {
        super(jag);
        jStick = j;
        lowerButton = 7;
        raiseButton = 6;
    }
    
    public void run()
    {
        while (true)
        {
            if (!shooting){
                if (jStick.getRawButton(raiseButton))
                        theJag.set(1);
                else if (jStick.getRawButton(lowerButton))
                        theJag.set(-1);
                else
                        theJag.set(0);
            }
        }
    }
}
